Component org.nuxeo.ecm.core.automation.featuresContrib
In bundle org.nuxeo.ecm.automation.features
Documentation
Contributions
- org.nuxeo.ecm.core.automation.featuresContrib--operations
- org.nuxeo.ecm.core.automation.featuresContrib--bindings
- org.nuxeo.ecm.core.automation.featuresContrib--chains
XML Source
<?xml version="1.0"?>
<component name="org.nuxeo.ecm.core.automation.featuresContrib" version="1.0">
<documentation>@author Bogdan Stefanescu (bs@nuxeo.com)</documentation>
<extension target="org.nuxeo.ecm.core.operation.OperationServiceComponent"
point="operations">
<operation class="org.nuxeo.ecm.automation.core.operations.services.query.DocumentPaginatedQuery">
<widgets>
<widget name="query" type="codearea">
<labels>
<label mode="any">Query</label>
</labels>
<properties mode="any">
<property name="language">nxql</property>
<property name="width">100%</property>
<property name="height">100%</property>
</properties>
<fields>
<field>query</field>
</fields>
</widget>
</widgets>
</operation>
<operation class="org.nuxeo.ecm.automation.core.operations.services.query.ResultSetPaginatedQuery">
<widgets>
<widget name="query" type="codearea">
<labels>
<label mode="any">ResultSet Query</label>
</labels>
<properties mode="any">
<property name="language">nxql</property>
<property name="width">100%</property>
<property name="height">100%</property>
</properties>
<fields>
<field>query</field>
</fields>
</widget>
</widgets>
</operation>
<operation
class="org.nuxeo.ecm.automation.core.operations.services.AuditLog" />
<operation
class="org.nuxeo.ecm.automation.core.operations.services.AuditQuery" />
<operation
class="org.nuxeo.ecm.automation.core.operations.services.AuditPageProviderOperation" />
<operation
class="org.nuxeo.ecm.automation.core.operations.services.CreateRelation" />
<operation
class="org.nuxeo.ecm.automation.core.operations.services.GetRelations" />
<operation
class="org.nuxeo.ecm.automation.core.operations.services.DeleteRelation" />
<operation
class="org.nuxeo.ecm.automation.core.operations.services.DocumentPageProviderOperation" >
<widgets>
<widget name="query" type="codearea">
<labels>
<label mode="any">NXQL query</label>
</labels>
<properties mode="any">
<property name="language">nxql</property>
<property name="width">100%</property>
<property name="height">100%</property>
</properties>
<fields>
<field>query</field>
</fields>
</widget>
</widgets>
</operation>
<operation
class="org.nuxeo.ecm.automation.core.operations.services.ResultSetPageProviderOperation" />
<operation
class="org.nuxeo.ecm.automation.core.operations.users.GetDocumentPrincipalEmails" />
<operation
class="org.nuxeo.ecm.automation.core.operations.users.GetDocumentUsersAndGroups" />
<operation
class="org.nuxeo.ecm.automation.core.operations.notification.SendMail" />
<operation
class="org.nuxeo.ecm.automation.core.operations.services.FileManagerImport" />
<operation
class="org.nuxeo.ecm.automation.core.operations.services.BlobHolderAttach" />
<operation
class="org.nuxeo.ecm.automation.core.operations.services.GetActions" />
<operation
class="org.nuxeo.ecm.automation.core.operations.management.GetCounters" />
<operation
class="org.nuxeo.ecm.automation.core.operations.services.GetDirectoryEntries" />
<operation
class="org.nuxeo.ecm.automation.core.operations.services.UserWorkspace" />
<operation
class="org.nuxeo.ecm.automation.core.operations.services.RunOperationOnProvider" />
<operation
class="org.nuxeo.ecm.automation.core.operations.services.directory.CreateDirectoryEntries" />
<operation
class="org.nuxeo.ecm.automation.core.operations.services.directory.DeleteDirectoryEntries" />
<operation
class="org.nuxeo.ecm.automation.core.operations.services.directory.UpdateDirectoryEntries" />
<operation
class="org.nuxeo.ecm.automation.core.operations.services.directory.ReadDirectoryEntries" />
<operation
class="org.nuxeo.ecm.automation.core.operations.services.directory.DirectoryProjection" />
<operation
class="org.nuxeo.ecm.automation.core.operations.users.GetNuxeoPrincipal" />
</extension>
<extension point="chains"
target="org.nuxeo.ecm.core.operation.OperationServiceComponent">
<chain id="VersionAndAttachFile">
<operation id="Context.PushBlobList">
</operation>
<operation id ="Repository.GetDocument">
<param type="string" name="value">expr:Context.get("currentDocument")</param>
</operation>
<operation id="Document.CheckIn">
<param type="string" name="version">minor</param>
<param type="string" name="comment">Automatic checkin before file update</param>
</operation>
<operation id="Context.SetInputAsVar">
<param type="string" name="name">newDocument</param>
</operation>
<operation id="Context.SetVar">
<param type="string" name="name">currentDocument</param>
<param type="string" name="value">expr:Context.get("newDocument").id</param>
</operation>
<operation id="Context.PopBlobList">
</operation>
<operation id="BlobHolder.AttachOnCurrentDocument">
<param type="boolean" name="useMainBlob">true</param>
</operation>
</chain>
<chain id="AttachFiles">
<operation id="BlobHolder.AttachOnCurrentDocument">
<param type="boolean" name="useMainBlob">false</param>
</operation>
</chain>
<chain id="VersionAndAttachFiles">
<operation id="Context.PushBlobList">
</operation>
<operation id ="Repository.GetDocument">
<param type="string" name="value">expr:Context.get("currentDocument")</param>
</operation>
<operation id="Document.CheckIn">
<param type="string" name="version">minor</param>
<param type="string" name="comment">Automatic checkin before files update</param>
</operation>
<operation id="Context.SetInputAsVar">
<param type="string" name="name">newDocument</param>
</operation>
<operation id="Context.SetVar">
<param type="string" name="name">currentDocument</param>
<param type="string" name="value">expr:Context.get("newDocument").id</param>
</operation>
<operation id="Context.PopBlobList">
</operation>
<operation id="BlobHolder.AttachOnCurrentDocument">
<param type="boolean" name="useMainBlob">false</param>
</operation>
</chain>
<chain id="FileManager.ImportWithMetaData">
<operation id="FileManager.Import">
<param type="boolean" name="overwite">true</param>
</operation>
<operation id="Document.Update">
<param type="properties" name="properties">expr:Context.get("docMetaData")</param>
</operation>
</chain>
</extension>
<extension target="org.nuxeo.ecm.automation.server.AutomationServer"
point="bindings">
<!-- don't allow direct access to Audit log -->
<binding name="Audit.Query">
<administrator>true</administrator>
</binding>
<binding name="Audit.QueryWithPageProvider">
<administrator>true</administrator>
</binding>
</extension>
</component>